Kubernetes (K8) Helm Upgrade
Use the helm upgrade command to reduce the disruption, and upgrade the chart to a new version by modifying the release settings. An upgrade alters the existing release based on the data provided. Helm can upgrade Kubernetes charts with the least disruption possible because they can be enormous and complex.
Only the changed items can be updated based on the previous release. The helm Upgrade and Rollback mechanism are only for the changing environment variables in the running Pods.
Commands:
helm upgrade <release-name> ./<path> -n <namespace> --set <env-variables>
Example:
helm upgrade campaign ./svc -n campaign --set env.name=%ENV_NAME%
Follow the steps to update the runtime configuration without downtime.
- Helm upgrade batch and shell scripts are available under the upgrade folder (ms-campaign-helm-sql-pack-<version>\upgrade).
- Make the necessary changes in the helm upgrade script and save it. For example, update the DB_NAME.
- Run the helm-upgrade script, and this updates the deployment with the new configuration change with zero downtime.

In this topic